import request from '@/utils/request'

export default {
    add: async (opts) => await request.post('/lesson', opts),
    getList: async (cond) => await request.get('/lesson/list', { params: cond }),
    getDetail: async (id) => await request.get('/lesson/list?withLessons=true&id=' + id),
    put: async (id, opts) => await request.put('/lesson?id=' + id, opts),
}